<template>
  <div class="contianer">
    <div>孙组件</div>
    <div>sun:{{ money }}</div>
  </div>
</template>

<script>import { inject } from 'vue'

export default {
  name: 'sun',
  setup(props) {
    const money = inject('pmoney')

    return { money }
  }
}
</script>

<style lang="less" scoped>
</style>
